//package com.example.yyc.test;
//
//import retrofit.GsonConverterFactory;
//import retrofit.Retrofit;
//import retrofit.RxJavaCallAdapterFactory;
//
///**
// * Created by yyc on 2017/10/24.
// */
//
//public class ServiceFactory {
//    private static final String BASEURL="http://192.168.191.1:8081/";
//    public static <T> T createServiceFrom(final Class<T> serviceClass) {
//        Retrofit adapter = new Retrofit.Builder()
//                .baseUrl(BASEURL)
//                .addCallAdapterFactory(RxJavaCallAdapterFactory.create()) // 添加Rx适配器
//                .addConverterFactory(GsonConverterFactory.create()) // 添加Gson转换器
//                .build();
//        return adapter.create(serviceClass);
//    }
//}
